package adapter;

import unit.Ambulance;

public class AAmbulanceView extends AUnit implements be.kuleuven.cs.swop.api.IAmbulanceView{

	public AAmbulanceView(Ambulance unit) {
		super(unit);
	}

	@Override
	public boolean isOccupied() {
		Ambulance ambulance = (Ambulance) super.getUnit();
		return ambulance.getToHospital()!=null;
	}


}
